import request from '@/utils/request'

// 查询柜列表
export function listArchiveCabinet(query) {
  return request({
    url: '/archive/ArchiveCabinet/list',
    method: 'get',
    params: query
  })
}

// 查询柜详细
export function getArchiveCabinet(id) {
  return request({
    url: '/archive/ArchiveCabinet/' + id,
    method: 'get'
  })
}

// 新增柜
export function addArchiveCabinet(data) {
  return request({
    url: '/archive/ArchiveCabinet',
    method: 'post',
    data: data
  })
}

// 修改柜
export function updateArchiveCabinet(data) {
  return request({
    url: '/archive/ArchiveCabinet',
    method: 'put',
    data: data
  })
}

// 删除柜
export function delArchiveCabinet(id) {
  return request({
    url: '/archive/ArchiveCabinet/' + id,
    method: 'delete'
  })
}

// 查询柜列表(不分页)
export function listArchiveCabinetAll(query) {
  return request({
    url: '/archive/ArchiveCabinet/listAll',
    method: 'get',
    params: query
  })
}
//获取服务器ip
export function getServerIp() {
  return request({
    url: '/archive/ArchiveCabinet/getServerIp',
    method: 'get'
  })
}
